package com.ncu.musicbox2020;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class PlayerReceiver extends BroadcastReceiver {
    private static final String TAG = PlayerReceiver.class.getSimpleName();
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();// 获取对应Action
        Log.d(TAG,"action:"+action);

    if(action.equals("play")) {
        // 进行对应操作

    } else if(action.equals("last")) {

    } else if(action.equals("next")){

        }
    }
}
